
<html>
   <head>
      <style type="text/css">
         .sikuli-code {
            font-size: 20px;
            font-family: "Osaka-mono", Monospace;
            line-height: 1.5em;
            display:table-cell;
            white-space: pre-wrap;       /* css-3 */
            white-space: -moz-pre-wrap !important;  /* Mozilla, since 1999 */
            white-space: -pre-wrap;      /* Opera 4-6 */
            white-space: -o-pre-wrap;    /* Opera 7 */
            word-wrap: break-word;       /* Internet Explorer 5.5+ */
            width: 99%;   /* remove horizontal scroll-bar when viewing in IE7 */
         }
         .sikuli-code img {
            vertical-align: middle;
            margin: 2px;
            border: 1px solid #ccc;
            padding: 2px;
            -moz-border-radius: 5px;
            -webkit-border-radius: 5px;
            -moz-box-shadow: 1px 1px 1px gray;
            -webkit-box-shadow: 1px 1px 2px gray;
         }
         .kw {
            color: blue;
         }
         .skw {
            color: rgb(63, 127, 127);
         }

         .str {
            color: rgb(128, 0, 0);
         }

         .dig {
            color: rgb(128, 64, 0);
         }

         .cmt {
            color: rgb(200, 0, 200);
         }

         h2 {
            display: inline;
            font-weight: normal;
         }  
         
         .info {
            border-bottom: 1px solid #ddd;
            padding-bottom: 5px;
            margin-bottom: 20px;
            display: none;
         }

         a {
            color: #9D2900;
         }

         body {
            font-family: "Trebuchet MS", Arial, Sans-Serif;
         }

      </style>
   </head>
<body>
<div class="info">
<h2>TestPlanning.sikuli\Desktop.sikuli</h2> <a href="TestPlanning.sikuli\Desktop.zip">(Download this script)</a>
</div>
<pre class="sikuli-code">
tab1=[<span class="str">"Ackerman"</span>,<span class="str">"Ackerman"</span>,<span class="str">""</span>,<span class="str">"Ackerman"</span>,<span class="str">"Ackerman"</span>,<span class="str">"Ackerman"</span>,<span class="str">"Ackerman"</span>,<span class="str">"Ackerman"</span>]

tab2 = [<span class="str">"Mikasa"</span>,<span class="str">""</span>,<span class="str">"Mikasa"</span>,<span class="str">"Mikasa"</span>,<span class="str">"Mikasa"</span>,<span class="str">"Mikasa"</span>,<span class="str">"Mikasa"</span>,<span class="str">"Mikasa"</span>]

tab3 = [<span class="str">""</span>,<span class="str">"10"</span>+Key.DIVIDE+<span class="str">"04"</span>+Key.DIVIDE+<span class="str">"1994"</span>,<span class="str">"10"</span>+Key.DIVIDE+<span class="str">"04"</span>+Key.DIVIDE+<span class="str">"1994"</span>,<span class="str">"10"</span>+Key.DIVIDE+<span class="str">"04"</span>+Key.DIVIDE+<span class="str">"1994"</span>,<span class="str">"12 mars"</span>,<span class="str">"12"</span>+Key.DIVIDE+<span class="str">"13"</span>+Key.DIVIDE+<span class="str">"2012"</span>,<span class="str">"32"</span>+Key.DIVIDE+<span class="str">"11"</span>+Key.DIVIDE+<span class="str">"2012"</span>,<span class="str">"32"</span>+Key.DIVIDE+<span class="str">"11"</span>+Key.DIVIDE+<span class="str">"12"</span>]

<span class="kw">def</span> setUp(self):
    <span class="skw">click</span>(<img src="Vq.png" />)
    <span class="skw">wait</span>(<span class="dig">0.5</span>)
    <span class="skw">doubleClick</span>(Pattern(<img src="1383919619684.png" />).similar(<span class="dig">0.62</span>).targetOffset(-<span class="dig">1</span>,-<span class="dig">15</span>))
    <span class="skw">wait</span>(<img src="XLiAjoutClie.png" />)


<span class="kw">def</span> tearDown(self):
    <span class="skw">click</span>(<img src="1383920347731.png" />)
    <span class="skw">wait</span>(<span class="dig">2</span>)
    <span class="skw">type</span>(<span class="str">"\n"</span>)

<span class="kw">def</span> testA(self):
    <span class="skw">click</span>(Pattern(<img src="Nom.png" />).similar(<span class="dig">0.83</span>).targetOffset(<span class="dig">169</span>,<span class="dig">1</span>))
    <span class="skw">type</span>(<span class="str">"Ackerman"</span>)
    <span class="skw">wait</span>(<span class="dig">0.5</span>)
    <span class="skw">click</span>(Pattern(<img src="Prenom-1.png" />).targetOffset(<span class="dig">139</span>,<span class="dig">0</span>))
    <span class="skw">type</span>(<span class="str">"Mikasa"</span>)
    <span class="skw">wait</span>(<span class="dig">0.5</span>)
    <span class="skw">click</span>(Pattern(<img src="DatedeNaissa-2.png" />).targetOffset(<span class="dig">109</span>,<span class="dig">0</span>))
    <span class="skw">type</span>(Key.CAPS_LOCK)
    <span class="skw">wait</span>(<span class="dig">0.5</span>)
    <span class="skw">type</span>(<span class="str">""</span>)

    <span class="kw">assert</span> exists(<img src="lMessageCert.png" />)

<span class="kw">def</span> testB(self):
    <span class="skw">click</span>(Pattern(<img src="Nom.png" />).similar(<span class="dig">0.83</span>).targetOffset(<span class="dig">169</span>,<span class="dig">1</span>))
    <span class="skw">type</span>(<span class="str">"Ackerman"</span>)
    <span class="skw">wait</span>(<span class="dig">0.5</span>)
    <span class="skw">click</span>(Pattern(<img src="Prenom-1.png" />).targetOffset(<span class="dig">139</span>,<span class="dig">0</span>))
    <span class="skw">type</span>(<span class="str">"Mikasa"</span>)
    <span class="skw">wait</span>(<span class="dig">0.5</span>)
    <span class="skw">click</span>(Pattern(<img src="DatedeNaissa-2.png" />).targetOffset(<span class="dig">109</span>,<span class="dig">0</span>))
    <span class="skw">type</span>(<span class="str">"10"</span>+Key.DIVIDE+<span class="str">"04"</span>+Key.DIVIDE+<span class="str">"1994"</span>)
    <span class="skw">wait</span>(<span class="dig">0.5</span>)

    <span class="kw">assert</span> exists(<img src="lMessageCert.png" />)
</pre>
</body>
</html>
